<!-- 入口 -->
<template>
  <div id="routerMySlot">
    <MySlot>
        <template v-slot:one>
          <p>3333</p>
        </template>
      </MySlot>
    <br />
    <MySlot>
      <a href="#">a按钮</a>
    </MySlot>
    <br />
    <MySlot>
      <div>div按钮</div>
    </MySlot>
    <br/>
    <MySlot>
      <template v-slot:user>
        <div>
          zhangsan
        </div>
      </template>
      <template v-slot:user1='a'>
        <div>
          {{a.user1}}
        </div>
      </template>
    </MySlot>
    <br />
  </div>
</template>

<script>import MySlot from '../components/MySlot.vue';
export default {
  data () {
    return {
    };
  },
//组件
  components: {
      MySlot,
  },
//计算
  computed: {},
//初始化
  mounted(){},
//方法
  methods: {
  }
}

</script>
<style lang='scss' scoped>
</style>